<!DOCTYPE html>
<html lang="zh-cn">
    <head>
        <meta charset="UTF-8"/>
        <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
        <title>ios11.1.2的iphoneX下输入框被遮盖</title>
        <script>
            !function(t,e){var n=t.documentElement,i="orientationchange"in window?"orientationchange":"resize",o=function(){var t=n.clientWidth,e=750;t&&(t>=e?n.style.fontSize="100px":n.style.fontSize=100*(t/e)+"px")};o(),t.addEventListener&&(e.addEventListener(i,o,!1),t.addEventListener("DOMContentLoaded",o,!1))}(document,window);
        </script>
        <style>
            * {
                margin: 0;
                padding: 0;
            }
            html, body {
                height: 100%;
            }
            .container {
                height: 100%;
                display: -webkit-box;
                display: -webkit-flex;
                display: -ms-flexbox;
                display: flex;
                -webkit-box-orient: vertical;
                -webkit-box-direction: normal;
                -webkit-flex-direction: column;
                -ms-flex-direction: column;
            }
            .content {
                -webkit-box-flex: 1;
                    -webkit-flex: 1;
                    -ms-flex: 1;
                    flex: 1;
            }
            .box {
                display: flex;
                padding: 10px 0;
                border-top: 1px solid black; 
            }
            input {
                border-top: 1px solid black;
                width: 80%;
            }
            button {
                margin-left: 5%;
                width: 10%;
            }
        </style>
    </head>
    <body class="layout-scroll-fixed">
        <div class="container">
          <div class="content">
            <p>flex布局，设置输入框在底部。ios还是遮盖输入框</p>
          </div>
          <div class="box">
            <input type="text">
            <button>确认</button>
          </div>
        </div>
        <script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
        <script>
            
        </script>
    </body>
</html>